<link rel="stylesheet" href="assets/css/home.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="assets/css/headline.css" type="text/css" media="screen" title="no title" charset="utf-8">


<section id='home'>
        <?PHP include('assets/pages/headline.php'); ?>
   

        <div class='c-box-headline c-box-300 ad-med-300-250 c-box-right'>
        	<div id='popout_button' >
				<p><a href="<?PHP echo $conf->httpcode.$_SERVER['HTTP_HOST'].$conf->path.$dir;?>play/<?PHP echo $category_videos['id'];?>/<?PHP echo csq($category_videos['title']);?>" title="Launch Player" class="popoutplayer" id='popoutbutton'>
				<img src="assets/images/launch-player.png" width="300" height="60" alt="Launch Player">
				</a></p> 
			</div>
                <?PHP
                $ad_m = new ads();
                $ad_m->zone=5;
                $ad_m->category=$cat;
                $ad_m->serve_image_ad();
                ?>
        </div>
      
        <div class='c-box-600 c-box-left c-box' id="communities" >
        <h3>Communities</h3>	
            <div id="home-banners" style="background:url('assets/images/dig-radio-banner.png');">
                
                <a href="community/18"><img class="button" src="assets/images/goto-digradio.png"></a>
	        </div>
    	    <div id="home-banners" style="background:url('assets/images/jazz-banner.png');">
        
                <a href="community/22"><img class="button" src="assets/images/goto-jazzistas.png"></a>
    	    </div>
    	    <div id="home-banners" style="background:url('assets/images/tcma-banner.png');">
  
                <a href="community/21"><img class="button" src="assets/images/goto-tcma.png"></a>
        	</div>
        
    	</div>
          <div class='c-box-headline c-box-300 c-box c-box-latest-videos' id='home-whats-new'>
                <h3>What's new on Pinoytuner</h3>
                <?PHP
                $items=0;
		$today= date("Y-m-d");

                foreach($category_items as $x)
                {
                          $date_sub = substr($x['start'],0,10);
						  
                        if($items <3 && $x['type']=='video' && $today==$date_sub)
                        {
                                ?>

                                        <li>
										<div class='c-box-latest-item-text-bida'><a href='play/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' class="popoutplayer c-box-latest-link"><?PHP  echo $x['title']."<br />";?></a>
											</div>
                                                
                                                        <div class='c-box-latest-item-image' style="background-image:url('<?PHP echo ap($x['thumb']);?>');">
                                                                <a href='play/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' class="popoutplayer">
                                                                        <img src="assets/images/play-mini.png" width="60" height="24" alt="Play Mini">
                                                                </a>
                                                        </div>
                                                        

                                                
                                                                                                

                                                



                                        </li>
                                        
                                <?PHP
                                $items++;
                        }
                        
        
                }

                ?>
        </div>
     
      
      
      </div>
      
 
     <?PHP

	    if($conf->advertise)
	    {


	    ?>
	       <div class='c-box-600 c-box-left c-box-social'>
		    	<div class='c-box-headline c-box-300 c-box-left c-box-tweet'>
			            <script src="http://widgets.twimg.com/j/2/widget.js"></script>
			            <script>
			            new TWTR.Widget({
			              version: 2,
			              type: 'profile',
			              rpp: 5,
			              interval: 4000,
			              width: 'auto',
			              height: 195,
			              theme: {
			                shell: {
			                  background: '#292424',
			                  color: '#E4E2D6'
			                },
			                tweets: {
			                  background: '#3F3434',
			                  color: '#E4E2D6',
			                  links: '#AF4F32'
			                }
			              },
			              features: {
			                scrollbar: true,
			                loop: false,
			                live: true,
			                hashtags: true,
			                timestamp: true,
			                avatars: false,
			                behavior: 'all'
			              }
			            }).render().setUser('pinoytuner').start();
			            </script>


			    </div>
			    <div class='c-box-headline c-box-300 c-box-left c-box-fb'>
			              <fb:like-box href="http://www.facebook.com/pinoytuner" width="320" height='285' colorscheme="dark" show_faces="true" stream="false" header="false"></fb:like-box>


			    </div>

		</div>
	    <?PHP

	    }
	    ?>
        

        
</section>
<script type="text/javascript" charset="utf-8" src="assets/js/headline_control.js"></script>
